/*
 * Copyright 2006-2023 ahtelit.com, All Rights Reserved.
 */

package com.telit.firecommand.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;


/**
 * 气象数据
 *
 * @author yuezhuang
 * @since 2023-03-31
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "SciMeteoricData", description = "气象数据")
public class SciMeteoricData implements Serializable {

    private static final long serialVersionUID = -1L;

    @ApiModelProperty(value = "ID", required = true)
    private Long id;

    @ApiModelProperty("监测站设备编号")
    private String code;

    @ApiModelProperty("数据时间")
    private String time;

    @ApiModelProperty("温度 ℃")
    private BigDecimal tmp;

    @ApiModelProperty("湿度 %RH")
    private BigDecimal rhu;

    @ApiModelProperty("风速 m/s")
    private BigDecimal winSd;

    @ApiModelProperty("风向 ° ")
    private BigDecimal winDegree;

    @ApiModelProperty("风向（汉字方")
    private BigDecimal winDegreeDir;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty("紫外线 W/m2")
    private BigDecimal ultraviolet;

    @ApiModelProperty("pm2.5 ug/m3")
    private BigDecimal pmTwo;

    @ApiModelProperty("pm10 ug/m3")
    private BigDecimal pm;

    @ApiModelProperty("负氧离子 个/cm3")
    private BigDecimal noIon;

    @ApiModelProperty("监测站设备名称")
    private String stationName;

}
